<template>
  <div>
    <!--移动端组件使用，也是直接用-->
    <van-button type="primary" @click="showToast">主要按钮</van-button>
    <van-button type="success">成功按钮</van-button>
    <van-button type="default">默认按钮</van-button>
    <van-button type="warning">警告按钮</van-button>
    <van-button type="danger">危险按钮</van-button>
  </div>
</template>
<script setup>
// 演示移动端提示用法
const { proxy } = getCurrentInstance()
const showToast = () => {
  proxy.$Toast('这是移动端提示')
}
</script>
